package com.aya.future;

import com.aya.service.DemoModel;
import com.aya.service.DemoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class DemoServiceFuture {
    private static final Logger logger = LoggerFactory.getLogger(DemoServiceFuture.class);

    public void invokeSayHello(DemoModel name) {
        logger.info("invokeSayHello executed");
    }

    public void returnSayHello(String returnValue) {
        logger.info("return invokeSayHello executed");
    }

    public void throwThrowableSayHello(Throwable throwable) {
        logger.info("throw invokeSayHello Throwable executed");
    }

    public void throwRuntimeExceptionSayHello(RuntimeException throwable) {
        logger.info("throw invokeSayHello RuntimeException executed");
    }

    public void throwExceptionSayHello(Exception throwable) {
        logger.info("throw invokeSayHello Exception executed");
    }

    public void throwCustomSayHello(IllegalArgumentException throwable) {
        logger.info("throw invokeSayHello IllegalArgumentException executed");
    }
}
